package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.Standard;
import com.zhijian.medical.entity.vo.request.StandardSearchVo;
import com.zhijian.medical.entity.vo.response.StandardVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface StandardMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Standard record);

    int insertSelective(Standard record);

    Standard selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Standard record);

    int updateByPrimaryKey(Standard record);

    /**
     * 查询总数
     *
     * @param standardSearchVo
     * @return
     */
    int count(StandardSearchVo standardSearchVo);

    /**
     * 查询列表
     *
     * @param standardSearchVo
     * @return
     */
    List<StandardVo> selectList(StandardSearchVo standardSearchVo);

    /**
     * 查询单个
     *
     * @param standardSearchVo
     * @return
     */
    StandardVo selectOne(StandardSearchVo standardSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    StandardVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param standardSearchVo
     * @return
     */
    void deleteByCondition(StandardSearchVo standardSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<Standard> entities);

    /**
     * 根据UserId查询列表
     *
     * @param userId
     * @return
     */
    List<StandardVo> selectListByUserId(Long userId);
}